home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Developer Utilities / Installer 4.0.3 SDK / Script Examples / Custom UI Example / Makefile < prev   
Encoding:
Makefile  |  1994-11-15  |  1.5 KB  |  37 lines  |  [TEXT/MPS ]

  1. #
  2. #    mark young • 07/20/94
  3. #    
  4.  
  5. # To build this example, choose the "Build…" menu item from within
  6. # the "Build" menu in MPW. When asked for Program Name, type in the 
  7. # script name, in this case "customUI" ( without double quotes ) 
  8. # and press the Enter key. Be sure that the Current Working Directory
  9. # for MPW is set to the directory containing this example.
  10.  
  11. # To build the Debugger version of this example, choose the "Build…" 
  12. # menu item from within the "Build" menu in MPW. When asked for Program 
  13. # Name, type in the script name, in this case "customUI.debug" ( without 
  14. # double quotes ) and press the Enter key. Be sure that the Current 
  15. # Working Directory for MPW is set to the directory containing this example.
  16.  
  17. scriptName                = customUI
  18. debugScriptName            = "{scriptName}.debug"
  19.  
  20. ScriptCheckDir            = :::ScriptCheck 4.0.3:
  21. InstallerRIncDir        = :::DeveloperInterfaces:RIncludes:
  22. InstallerDebuggerDir    = :::Installer Debugger 4.0:
  23.  
  24. # build the debug version of the installer script
  25. "{debugScriptName}" ƒ "{scriptName}"
  26.     Duplicate -y "{scriptName}" "{scriptName} w/ Debugger"
  27.     Rez -m "{InstallerDebuggerDir}Installer Debugger.r" -append -o "{scriptName} w/ Debugger"
  28.  
  29. # build the regular version of the installer script
  30. "{scriptName}" ƒ "{scriptName}.r"
  31.     set theTime    "'`date -d -s` 12:00:00 PM'"
  32.     Rez "{scriptName}.r" -o "{scriptName}" -t 'kajr' -c 'kajr' -i "{InstallerRIncDir}"
  33.     SetFile -a b -d {theTime} "{scriptName}"
  34.     "{ScriptCheckDir}ScriptCheck" "{scriptName}" -h -d -a
  35.     SetFile -m {theTime} "{scriptName}"
  36.  
  37.